package com.example.bodyinfo.service;

import com.example.bodyinfo.dao.workinfoRepository;
import com.example.bodyinfo.model.workInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class workInfoService {
    @Autowired
    workinfoRepository workinfoRepository;
    public workInfo findById(int id){
        return workinfoRepository.findById(id).get();
    }

}
